<#include "/WEB-INF/admin/app/common/_public.html" />

<div class="bjui-pageHeader">
    <form id="pagerForm" data-toggle="ajaxsearch" action="${ctx}/security/user" method="post">
        <div class="office">
            <ul class="offbtn">
                <li> <a id="user_add" data-toggle="navtab" data-url="${ctx}/security/user/add" data-id="user_navtab_add" >
                    <span><i class="fa fa-plus"></i></span>添加</a>
                </li>
                <li> <a id="user_edit" data-toggle="navtab" data-url="${ctx}/security/user/edit/{#bjui-selected}" data-id="user_navtab_edit" >
                    <span><i class="fa fa-plus"></i></span>编辑</a>
                </li>
                <li> <a id="user_refresh" data-toggle="reloadsearch" data-target="#bjui-pageContent" >
                    <span><i class="fa fa-refresh"></i></span>刷新</a>
                </li>
            </ul>
        </div>
        <input type="hidden" name="limit" value="${limit!}">
        <input type="hidden" name="start" value="${start!}">


        <input type="hidden" name="limit" value="${page.pageSize!}">
        <input type="hidden" name="start" value="${page.pageNumber!}">
        <input type="hidden" name="total" value="${page.totalRow!}">
        <div class="bjui-searchBar">
            <label>员工账号:</label>
            <input type="text" class="input_240" name="name" value="${name!}"/>
            <label>姓名:</label>
            <input type="text" class="input_240" name="name" value="${name!}"/>
            <label>部门:</label>
            <input type="text" class="input_240" name="name" value="${name!}"/>
            <button type="submit" class="btn-default" data-icon="search">查询</button>&nbsp;
            <a class="btn btn-orange" href="javascript:;" data-toggle="reloadsearch" data-clear-query="true" data-icon="undo">清空查询</a>
        </div>


    </form>
</div>
<div class="bjui-pageContent tableContent">
    <table class="table table-bordered table-hover table-striped table-top" data-selected-multi="true">
        <thead>
        <tr>
            <th><input type="checkbox" data-toggle="icheck" class="checkboxCtrl"/></th>
            <th align=center>
                账号
            </th>
            <th align=center>
                姓名
            </th>

            <th align=center>
                部门
            </th>
            <th align=center>
                职位
            </th>
            <th align=center>
                员工工号
            </th>
            <th align=center>
                手机号
            </th>
            <th align=center>
                操作
            </th>
        </tr>
        </thead>
        <tbody>
        <#list page.list as user>
            <tr>
                <td><input type="checkbox" data-toggle="icheck" value="${user.id!}" /></td>
                <td class="td_list_2" align=left nowrap>
                    ${user.username}&nbsp;
                </td>
                <td class="td_list_2" align=left nowrap >
                    ${user.fullname}&nbsp;
                </td>

                <td class="td_list_2" align=left nowrap>
                    ${user.orgName}&nbsp;
                </td>
                <td class="td_list_2" align=left nowrap>
                    ${user.position!}&nbsp;
                </td>
                <td class="td_list_2" align=left nowrap>
                    ${user.employeeid!}&nbsp;
                </td>
                <td class="td_list_2" align=left nowrap>
                    ${user.telephone!}&nbsp;
                </td>

                <td class="td_list_2" align=left nowrap>
                    <a class="btn btn-default"
                       href="${ctx}/security/user/view/${user.id}" data-toggle="navtab"
                       data-id="user_view" data-icon="search"
                       data-title="查看-${user.fullname}">查看</a>
                    <a
                            href="${ctx}/security/user/edit/${user.id }" class="btn btn-blue" data-toggle="navtab"
                            data-id="user_edit" data-icon="edit"
                            data-reload-warn="本页已有打开的内容，确定将刷新本页内容，是否继续？" data-title="编辑-${user.fullname}"> 编辑</a>
                    <a  href="${ctx}/security/org/delete/${user.id }" class="btn btn-red" data-toggle="doajax" data-icon="close"
                        data-confirm-msg="确定要删除该行信息吗？">删除</a>
                </td>

            </tr>
        </#list>
        </tbody>
    </table>
</div>
<#include "/WEB-INF/admin/app/common/_footer.html" />
